package com.xxcxcxcx.xc_moremob.common.entities.monster.models;

import com.xxcxcxcx.xc_moremob.Main;
import com.xxcxcxcx.xc_moremob.common.entities.monster.realization.FlyRemoteBasicEntity;
import net.minecraft.client.model.geom.ModelLayerLocation;
import net.minecraft.resources.ResourceLocation;
import software.bernie.geckolib3.model.AnimatedGeoModel;

public class FlyRemoteBasicModel extends AnimatedGeoModel<FlyRemoteBasicEntity> {
    public static final String name="fly_remote_basic";
    public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation(Main.MOD_ID, name), "main");

    ResourceLocation FlyingRangeBasicAtkTexture = new ResourceLocation(Main.MOD_ID, "textures/entity/"+name+"_atk.png");
    ResourceLocation FlyingRangeBasicNormalTexture = new ResourceLocation(Main.MOD_ID, "textures/entity/"+name+"_normal.png");
    @Override
    public ResourceLocation getModelLocation(FlyRemoteBasicEntity flyRemoteBasicEntity) {
        return new ResourceLocation(Main.MOD_ID, "geo/"+name+".geo.json");
    }

    @Override
    public ResourceLocation getTextureLocation(FlyRemoteBasicEntity flyRemoteBasicEntity) {
        if (flyRemoteBasicEntity.isCharging())
        {
            return FlyingRangeBasicAtkTexture;
        }
        else
            return FlyingRangeBasicNormalTexture;
    }

    @Override
    public ResourceLocation getAnimationFileLocation(FlyRemoteBasicEntity flyRemoteBasicEntity) {
        return new ResourceLocation(Main.MOD_ID, "animations/"+name+".animation.json");
    }
}
